<template>
  <el-col :span="3" class="left-nav">
    <div class="cate-title">{{ title }}</div>
    <el-menu :unique-opened="true" class="el-menu-vertical-demo">
      <sub-meun :list="list" />
    </el-menu>
  </el-col>
</template>

<script>
import SubMeun from './component/SubMeun'
export default {
  components: { SubMeun },
  props: {
    title: {
      type: String,
      default: null
    },
    list: {
      type: Array,
      default: () => {}
    }
  }
}
</script>

<style lang="scss">
.left-nav{
  overflow: hidden;
.cate-title{
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid #e6e6e6;
  padding: 20px 0px 20px 20px ;
  background-color: #fff;
}
.el-menu-vertical-demo{
    &.el-menu{
        border-right: none;
    }

}
}
</style>
